const systemSettingRouter = {
    path: '/system-setting',
    redirect: 'noRedirect',
    name: 'system-setting',
    component: () => import('@/layout/layout'),
    meta: {title: '系统设置', auth: true},
    children: [
        {
            path: 'admin-manage',
            name: 'admin',
            redirect: 'noRedirect',
            component: () => import('@/views/system/adminManager/index.vue'),
            meta: {title: '系统管理', auth: true},
            children: [
                {
                    path: 'admin',
                    name: 'admin',
                    component: () => import('@/views/system/adminManager/manager/admin'),
                    meta: {title: '用户管理', auth: true}
                },
                {
                    path: 'role',
                    name: 'role',
                    component: () => import('@/views/system/adminManager/manager/role'),
                    meta: {title: '角色管理', auth: true}
                },
                {
                    path: 'dept',
                    name: 'dept',
                    component: () => import('@/views/system/adminManager/manager/dept'),
                    meta: {title: '部门管理', auth: true}
                },
                {
                    path: 'menu',
                    name: 'menu',
                    component: () => import('@/views/system/adminManager/manager/menu'),
                    meta: {title: '菜单管理', auth: true}
                }
            ]
        },
        {
            path: 'log-manage',
            name: 'log',
            redirect: 'noRedirect',
            component: () => import('@/views/system/logManager/index.vue'),
            meta: {title: '日志管理'},
            children: [
                {
                    path: 'action',
                    name: 'action',
                    component: () => import('@/views/system/logManager/log/actionLog'),
                    meta: {title: '操作日志', auth: true}
                },
                {
                    path: 'login',
                    name: 'login',
                    component: () => import('@/views/system/logManager/log/loginLog'),
                    meta: {title: '登陆日志', auth: true}
                },
                {
                    path: 'slow',
                    name: 'slow',
                    component: () => import('@/views/system/logManager/log/slowInterface'),
                    meta: {title: '慢接口日志', auth: true}
                }
            ]
        }
    ]
}

export default systemSettingRouter
